import {HYEventStore} from 'hy-event-store'
import {getRankings} from '../service/api_music'

const rankingStore =new HYEventStore({
  state:{
    newRanking:[],
  },
  actions:{
    getRankingData(state){
      getRankings(0).then(res=>{
        state.newRanking=res.data.data
      })
    }
  }
})

export {
  rankingStore
}